package cn.chinaflame.pagodas.entity;
import javax.persistence.*;
import java.math.BigDecimal;

/**
 * Created by yw on 2018/1/25.
 */
@Entity
@Table(name = "vw_bless_beinvited", schema = "pagoda", catalog = "")
public class VwBlessBeinvited {
    private String id;
    private String itemId;
    private String itemName;
    private String sourceMemberId;
    private String sourceNickName;
    private String beWishedName;
    private Integer number;
    private Integer term;
    private String startTime;
    private String endTime;
    private String productAreaId;
    private String productAreaName;
    private String productPositionId;
    private String productPositionName;
    private String productId;
    private String productName;
    private BigDecimal money;
    private String memberId;
    private String orderitemId;

    @Id
    @Basic
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "member_id")
    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    @Basic
    @Column(name = "orderitem_id")
    public String getOrderitemId() {
		return orderitemId;
	}

	public void setOrderitemId(String orderitemId) {
		this.orderitemId = orderitemId;
	}

	@Basic
    @Column(name = "item_id")
    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "item_name")
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "source_member_id")
    public String getSourceMemberId() {
        return sourceMemberId;
    }

    public void setSourceMemberId(String sourceMemberId) {
        this.sourceMemberId = sourceMemberId;
    }

    @Basic
    @Column(name = "source_nick_name")
    public String getSourceNickName() {
        return sourceNickName;
    }

    public void setSourceNickName(String sourceNickName) {
        this.sourceNickName = sourceNickName;
    }

    @Basic
    @Column(name = "be_wished_name")
    public String getBeWishedName() {
        return beWishedName;
    }

    public void setBeWishedName(String beWishedName) {
        this.beWishedName = beWishedName;
    }

    @Basic
    @Column(name = "number")
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Basic
    @Column(name = "term")
    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    @Basic
    @Column(name = "start_time")
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "end_time")
    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "product_area_id")
    public String getProductAreaId() {
        return productAreaId;
    }

    public void setProductAreaId(String productAreaId) {
        this.productAreaId = productAreaId;
    }

    @Basic
    @Column(name = "product_area_name")
    public String getProductAreaName() {
        return productAreaName;
    }

    public void setProductAreaName(String productAreaName) {
        this.productAreaName = productAreaName;
    }

    @Basic
    @Column(name = "product_position_id")
    public String getProductPositionId() {
        return productPositionId;
    }

    public void setProductPositionId(String productPositionId) {
        this.productPositionId = productPositionId;
    }

    @Basic
    @Column(name = "product_position_name")
    public String getProductPositionName() {
        return productPositionName;
    }

    public void setProductPositionName(String productPositionName) {
        this.productPositionName = productPositionName;
    }

    @Basic
    @Column(name = "product_id")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "product_name")
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Basic
    @Column(name = "money")
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VwBlessBeinvited that = (VwBlessBeinvited) o;

        if (itemId != null ? !itemId.equals(that.itemId) : that.itemId != null) return false;
        if (itemName != null ? !itemName.equals(that.itemName) : that.itemName != null) return false;
        if (sourceMemberId != null ? !sourceMemberId.equals(that.sourceMemberId) : that.sourceMemberId != null)
            return false;
        if (sourceNickName != null ? !sourceNickName.equals(that.sourceNickName) : that.sourceNickName != null)
            return false;
        if (beWishedName != null ? !beWishedName.equals(that.beWishedName) : that.beWishedName != null) return false;
        if (number != null ? !number.equals(that.number) : that.number != null) return false;
        if (term != null ? !term.equals(that.term) : that.term != null) return false;
        if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;
        if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;
        if (productAreaId != null ? !productAreaId.equals(that.productAreaId) : that.productAreaId != null)
            return false;
        if (productAreaName != null ? !productAreaName.equals(that.productAreaName) : that.productAreaName != null)
            return false;
        if (productPositionId != null ? !productPositionId.equals(that.productPositionId) : that.productPositionId != null)
            return false;
        if (productPositionName != null ? !productPositionName.equals(that.productPositionName) : that.productPositionName != null)
            return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productName != null ? !productName.equals(that.productName) : that.productName != null) return false;
        if (money != null ? !money.equals(that.money) : that.money != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = itemId != null ? itemId.hashCode() : 0;
        result = 31 * result + (itemName != null ? itemName.hashCode() : 0);
        result = 31 * result + (sourceMemberId != null ? sourceMemberId.hashCode() : 0);
        result = 31 * result + (sourceNickName != null ? sourceNickName.hashCode() : 0);
        result = 31 * result + (beWishedName != null ? beWishedName.hashCode() : 0);
        result = 31 * result + (number != null ? number.hashCode() : 0);
        result = 31 * result + (term != null ? term.hashCode() : 0);
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        result = 31 * result + (productAreaId != null ? productAreaId.hashCode() : 0);
        result = 31 * result + (productAreaName != null ? productAreaName.hashCode() : 0);
        result = 31 * result + (productPositionId != null ? productPositionId.hashCode() : 0);
        result = 31 * result + (productPositionName != null ? productPositionName.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (productName != null ? productName.hashCode() : 0);
        result = 31 * result + (money != null ? money.hashCode() : 0);
        return result;
    }
}
